package com.wx.circulardependencies;

import org.springframework.beans.factory.annotation.Autowired;

public class B {
//	@Autowired
	private A a;

	public B() {
	}

	public B(A a) {
		this.a = a;
	}

	public A getA() {
		return a;
	}

	@Autowired
	public void setA(A a) {
		this.a = a;
	}

	public void invokeA() {
		a.invokeB();
	}
}
